<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>对象</title>
</head>
<body>
        <script>
            var arr = {
                1:'fank',
                2:'eng',
                3:28
            };
            console.log(arr[1]);
            console.log(arr[2]);
            console.log(arr[3])


        </script>
</body>
</html>